package models;

import play.*;
import play.data.validation.Required;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;

@Entity
@Table(name = "circuits")
public class Circuit extends Model {

    @Required
    public String name;
    @Required
    public Double miles;

    public Circuit(String name, Double miles) {

        this.name = name;
        this.miles = miles;


    }

    @Override
    public String toString() {
        return this.name;
    }
}
